#the description of qsort says that the first argument is a pointer to the first element of the array
Explore tagged Tumblr posts
relto · 6 years ago
Text
why is pointer stuff so weird!!! i realized out that my program wasnt doing what i wanted it to, so i put a few printfs all over the code to see where its going wrong. and it somehow fucks up the input (???) AND get a ridiculous value for the amount of lines (??????) for some input files so once it attempts to output the lines it obviously runs WAY past the right point and theres a memory leak.
0 notes